<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>home</title>

    <script th:src="@{/js/jquery-3.6.0.js}"></script>
    <script th:src="@{/js/bootstrap.js}"></script>
    <script th:src="@{/js/jjl_manage.js}" charset="utf-8"></script>
    <script th:src="@{/js/jjl_tianjia.js}" charset="utf-8"></script>

</head>
<body>

<form class="form-horizonal" style="height: 250px" >
    <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">员工姓名</label>
        <div class="col-sm-10">
            <p class="form-control-static userid" type="text" th:text="${user.getName()}" id="inputEmail3">
        </div>
    </div>
    <div class="dropdown">

    </div>
    <div class="form-group dropdown">
        <label class="col-sm-2 control-label">工作部门</label>
        <select class="zhuazhide btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
                data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" onchange="chaxun()">
            <option>
                请选择部门..
            </option>


            <option class="optionzhi" th:text="${dp.getDepartmentname()}"
                    th:value="${dp.getId()}" th:each="dp:${dop}">

            </option>

            <span class="caret"></span>
        </select>

    </div>


    <div class="form-group dropdown">
        <label class="col-sm-2 control-label">部门职位</label>
        <select class="two btn btn-default dropdown-toggle qunimade" type="button" id="dropdownMenu1"
                data-toggle="dropdown"
                aria-haspopup="true" aria-expanded="true">

            <span class="caret"></span>
            <option>
                请选择职位..
            </option>
            <option th:each="jobb:${joba}" th:text="${jobb.getJob()}" th:value="${jobb.getId()}">

            </option>
        </select>

    </div>
    <div class="form-group dropdown">
        <label class="col-sm-2 control-label">在职状态</label>
        <select class="btn btn-default dropdown-toggle qunimade  stateid" type="button" id="dropdownMenu1"
                data-toggle="dropdown"
                aria-haspopup="true" aria-expanded="true">
            <span class="caret"></span>
            <option id="workstyle" value="1">
                在职
            </option>
            <option id="workstyle" value="0">
                离职
            </option>

            </button>
        </select>


    </div>


    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default zhelizheli" th:value="${user.getId()}">
                <a href="#" onclick="update_job()" th:value="${user.getId()}">提交</a>
            </button>
        </div>
    </div>


</form>


<script>
    $('#myDropdown').on('show.bs.dropdown', function () {
        $('.dropdown-toggle').dropdown('toggle')
    })


</script>
<style>
    .form-group {
        margin: 5px;
    }
</style>

</body>

<link rel="stylesheet" th:href="@{https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css}"
      integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

</html>